/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2022-03-10 09:49:01
 * @LastEditors: ziwei
 * @LastEditTime: 2022-03-10 11:44:00
 */
const express = require('express')
const app = express()
app.use(function (req,res,next) {
  if(req.url === '/hello.css'){
    setTimeout(next, 1000);
  }else if(req.url === '/hello.js'){
    setTimeout(next, 2000);
  }else{
    next()
  }
})
app.use(express.static('public'))
app.listen(80,()=>{
    console.log('server started at 80');
})